class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories, :primary_key => :id  do |t|
        t.integer   :id
        t.string    :name
        t.text      :description
        t.timestamps
    end

    Category.create :id => 1,
      :name => 'Climbing',
      :description => 'Different equipment used for rock climbing'
    Category.create :id => 2,
      :name => 'Rafting',
      :description => 'Different equipment used for rafting'
  end

  def self.down
    drop_table :categories
  end
end
